package com.bookcity.front.webfront.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 章节对象 bsection
 * 
 * @author laoliu
 * @date 2023-05-07
 */
public class Section extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 章节名 */
    @Excel(name = "章节名")
    private String secname;

    /** 内容 */
    @Excel(name = "内容")
    private String ncontent;

    /** 加入时间 */
    @JsonFormat(pattern = "yyyy-MM-dd H:mm:ss")
    @Excel(name = "加入时间", width = 30, dateFormat = "yyyy-MM-dd H:mm:ss")
    private Date addtime;

    /** 书籍号 */
    //@Excel(name = "书籍号")
    private Long bookid;

    /** 书籍号 */
    @Excel(name = "书名")
    private String bookname;

    /** 顺序 */
    @Excel(name = "顺序")
    private Integer ordid;

    /** 是否收费 */
    @Excel(name = "是否收费")
    private Boolean isfee;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public void setSecname(String secname)
    {
        this.secname = secname;
    }

    public String getSecname() 
    {
        return secname;
    }
    public void setNcontent(String ncontent) 
    {
        this.ncontent = ncontent;
    }

    public String getNcontent() 
    {
        return ncontent;
    }
    public void setAddtime(Date addtime) 
    {
        this.addtime = addtime;
    }

    public Date getAddtime() 
    {
        return addtime;
    }
    public void setBookid(Long bookid) 
    {
        this.bookid = bookid;
    }

    public Long getBookid() 
    {
        return bookid;
    }
    public void setOrdid(Integer ordid) 
    {
        this.ordid = ordid;
    }

    public Integer getOrdid() 
    {
        return ordid;
    }
    public void setIsfee(Boolean isfee) 
    {
        this.isfee = isfee;
    }

    public Boolean getIsfee() 
    {
        return isfee;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("secname", getSecname())
            .append("ncontent", getNcontent())
            .append("addtime", getAddtime())
            .append("bookid", getBookid())
            .append("ordid", getOrdid())
            .append("isfee", getIsfee())
            .toString();
    }
}
